/**
 * TODO: please加入描述
 * @author chenxin
 * @time 2017-02-17-23:40
 */
public class ExtendTest {
    public static void main(String[] args) {
        Son son = new Son();
        son.setBar("bar");
        Father fa = son;
        System.out.println(fa.getFoo());
        Son t = (Son) fa;
        System.out.println(t.getBar());

    }
}
